package test.it.concept.pin.pojoadapters.adapters;

import it.concept.pin.transport.AbstractToModelTransportHandler;
import test.it.concept.pin.pojoadapters.model.impl.FullNameImpl;
import test.it.concept.pin.pojoadapters.pojo.FullNamePojoToImpl;

public class FullNameToImplHandler extends AbstractToModelTransportHandler<FullNamePojoToImpl, FullNameImpl> {

	public FullNameImpl toModel( FullNamePojoToImpl pojo, FullNameImpl model ) {
		
		model.setName( pojo.nameAndLast.split("\\/")[0] );
		model.setLastName( pojo.nameAndLast.split("\\/")[1] );
		
		return super.toModel( pojo, model );
	
	}
	
}
